package net.wzw.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import net.wzw.service.BlurCounterService;
import net.wzw.utils.ApiResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzw
 * @date 2025/5/1
 * @Description
 */
@Api(tags = "社交微服务计数模块")
@Slf4j
@RestController
@RequestMapping("/api/social/v1")
public class UserCounterController {

    /**
     * 注入用户关系服务
     */
    private BlurCounterService blurCounterService;


     /**
      * 博主关注/取关
      ***/
     @ApiOperation("点赞测试")
     @PostMapping("/doLike")
     public ApiResult doLike(){

        ApiResult apiResult = blurCounterService.setCounter(1,"food","like_count",1);
         return apiResult;
     }


}
